package school.dao;

import school.entity.Subject;
import school.util.DBUtil;

public class SubjectDao {
	public static final SubjectDao DAO = new SubjectDao();

	public int add(Subject s) {
		String sql = "insert into `subject`(subjectname,classhour,gradeid)values(?,?,?)";
		return DBUtil.executeUpdate(sql, s.getSubjectname(), s.getClasshour(),
				s.getGradeid());
	}
}
